GtkImage: Fix the initial value of icon-size
authorMatthias Clasen <mclasen@redhat.com>
Sun, 16 Jun 2013 00:22:18 +0000 (20:22 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 16 Jun 2013 00:23:01 +0000 (20:23 -0400)
Since we are pulling the icon-size out of the icon helper now,
we should set its icon-size when constructing it.

gtk/gtkimage.c

index 61c41b97eee8ce3c12505f66ed62d843f3a69116..cc480bfe902f210f9e8c6d71a43930fa1c294bb9 100644 (file)
@@ -380,6 +380,7 @@ gtk_image_init (GtkImage *image)
 
   gtk_widget_set_has_window (GTK_WIDGET (image), FALSE);
   priv->icon_helper = _gtk_icon_helper_new ();
+  _gtk_icon_helper_set_icon_size (priv->icon_helper, DEFAULT_ICON_SIZE);
 
   priv->filename = NULL;
 }